﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace LynxWebLog
{
    [DataContract(Namespace = "http://schemas.datacontract.org/2004/07/LynxBlogAPI.Models")]
    public class CommentPolicy
    {
        [DataMember]
        public string blogid { get; set; }
        [DataMember]
        public bool pagecommentsallowed { get; set; }
        [DataMember]
        public bool blogcommentsallowed { get; set; }
        [DataMember]
        public bool ismoderated { get; set; }
        [DataMember]
        public bool requirescaptcha { get; set; }
        [DataMember]
        public bool showuserlink { get; set; }

        public CommentPolicy() { }

        public CommentPolicy(string blogId)
        {
            this.blogid = blogId;
        }
    }
}